|
|
|
|
|
|
|
In a manner analogous to the case of two and three dimensions, you can use translations and rotations to reflect a point across a space other than one of the four coordinate spaces. |
|
|
|
|
|
|
|
|
Similarly, in an even higher N-dimensional space, you can reflect a point across an N 1-dimensional space. To make a matrix for reflecting across a coordinate space, change one of the 1's in the identity matrix's diagonal to 1. Modify one of the first entries, leaving the scaling value in the lower-right corner unchanged. |
|
|
|
|
|
|
|
|
In two dimensions, you can rotate a point around another point. In the simplest form of rotation, the point of rotation is the origin. You can use a single translation to rotate around a point other than the origin. |
|
|
|
|
|
|
|
|
In three dimensions, you can rotate a point around a line called the axis of rotation. In the simplest of these rotations, the axis of rotation is one of the X, Y, or Z coordinate axes. When you rotate a point around a coordinate axis, the corresponding coordinate for the point does not change, but the others do. |
|
|
|
|
|
|
|
|
For example, when you rotate a point around the X axis, the point's X coordinate stays the same while its Y and Z coordinates change. The Y and Z coordinates are changed exactly as the coordinates of the point's projection onto the Y-Z plane would have been changed if the projected point were rotated around the origin. In that sense, a three-dimensional rotation around a coordinate axis is the same as a two-dimensional rotation in the coordinate plane perpendicular to the axis. |
|
|
|
|
|
|
|
|
The fact that a point's X coordinate does not change is reflected in the transformation matrix. The first row and column, which correspond to the X coordinate, are the same as those in the identity matrix. The rows and columns corresponding to the Y and Z axes are not. |
|
|
|
|
|
|
|
|
You can use translations and rotations to rotate a point around a line other than one of the coordinate axes. |
|
|
|
|
|
|
|
|
In four dimensions, you rotate a point around a plane! In the simplest kinds of rotation, the plane of rotation is one of the six coordinate planes: X-Y, X-Z, X-W, Y-Z, Y-W, or Z-W. When you rotate a point around a coordinate plane, the corresponding coordinates for the point do not change, and the others do. For example, when you rotate a point around the X-Z plane, the point's X and Z coordinates remain unchanged while its Y and W coordinates are modified. The Y and W coordinates are changed exactly as they would be during a rotation around the origin in the two-dimensional Y-W plane. |
|
|
|
|
|